Create(RenderTarget,CompatibleRenderTargetOptions,Nullable<PixelFormat>) Method
In This Topic
Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target with same size and pixel size.
Syntax
Parameters
- renderTarget
- an instance of RenderTarget
- options
- A value that specifies whether the new render target must be compatible with GDI.
- desiredFormat
- The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is AlphaMode.Unknown, the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.
See Also